package me.myqaq.myqaqcraft.slimefunaddon.utils;

import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
import io.github.thebusybiscuit.slimefun4.api.items.ItemHandler;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType;
import io.github.thebusybiscuit.slimefun4.core.attributes.Radioactive;
import io.github.thebusybiscuit.slimefun4.core.attributes.Radioactivity;
import io.github.thebusybiscuit.slimefun4.core.attributes.WitherProof;
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunItems;
import io.github.thebusybiscuit.slimefun4.implementation.items.RadioactiveItem;
import me.myqaq.myqaqcraft.slimefunaddon.MyQaqCraft;
import org.bukkit.NamespacedKey;
import org.bukkit.block.Block;
import org.bukkit.entity.Wither;
import org.bukkit.inventory.ItemStack;

import javax.annotation.Nonnull;

public class zhu {
    //注册分类的唯一key
    public static NamespacedKey createNameKey(String key){
        return new NamespacedKey(MyQaqCraft.getInstance(),key);
    }
//    public static void registerItem(String id, ItemStack item, ItemGroup itemGroup, RecipeType rt, ItemStack[] recipe){
//        SlimefunItemStack sis =new SlimefunItemStack(id,item);
//        SlimefunItem sfi = new SlimefunItem(itemGroup,sis,rt,recipe);
//        // 注册
//        sfi.register(MyQaqCraft.getInstance());
//    }
//    public static void registerItemAr(String id, ItemStack item, Radioactivity radioactivity,ItemGroup itemGroup, RecipeType rt, ItemStack[] recipe){
//
//
//        SlimefunItemStack sis =new SlimefunItemStack(id,item);
//        SlimefunItem sfi = new RadioactiveItem(itemGroup,radioactivity,sis,rt,recipe);
//        // 注册
//        sfi.register(MyQaqCraft.getInstance());
//    }
    // 注册完后重载 绑定 ItemHandler
//    public static void registerItem(String id, ItemStack item,  ItemGroup itemGroup, RecipeType rt, ItemStack[] recipe, ItemHandler... ith){
//        SlimefunItemStack sis =new SlimefunItemStack(id,item);
//        SlimefunItem sfi = new SlimefunItem(itemGroup,sis,rt,recipe);
//        for (ItemHandler ih : ith){
//            sfi.addItemHandler(ih);
//        }
//        // 注册
//        sfi.register(MyQaqCraft.getInstance());
//    }

//    public static void registerItemAr(String id, ItemStack item,  ItemGroup itemGroup, RecipeType rt, ItemStack[] recipe, ItemHandler... ith){
//        SlimefunItemStack sis =new SlimefunItemStack(id,item);
//        SlimefunItem sfi = new SlimefunItem(itemGroup,sis,rt,recipe);
//        for (ItemHandler ih : ith){
//            sfi.addItemHandler(ih);
//        }
//
//        // 注册
//        sfi.register(MyQaqCraft.getInstance());
//    }
}

